import { INIT_ORDER } from "./mutations-types";
export default {
  state: {
    list: [],
    order_id: localStorage.getItem("tea_orderId") || "",
  },
  getters: {},
  mutations: {
    [INIT_ORDER](state, orderId) {
      state.list = orderId;
      //存储订单号
      state.order_id = orderId[0].order_id;
      localStorage.setItem("tea_orderId", orderId[0].order_id);
    },
  },
  actions: {},
};
